package com.se2.antiqueexhibition.Service.impl;

import com.se2.antiqueexhibition.Mapper.ActivityMapper;
import com.se2.antiqueexhibition.Service.ActivityService;
import com.se2.antiqueexhibition.pojo.Activity;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ActivityServiceimpl implements ActivityService {
    @Resource
    private ActivityMapper activityMapper;

    @Override
    public List<Activity> getAllActivities() {
        System.out.println("应用层调用成功");
        return activityMapper.getAllActivities();
    }

    @Override
    public Activity getActivityById(int id) {
        return activityMapper.getActivityById(id);
    }

}
